import request from '@/utils/request'

const api = {
  user: '/user',
  role: '/role',
  service: '/service',
  permission: '/permission',
  permissionNoPager: '/permission/no-pager',
  orgTree: '/org/tree'
}

export default api

// 获取系统用户列表
export function getSystemUserList (data) {
  return request({
    url: `/system/user/list`,
    method: 'post',
    data
  })
}

// 获取左边书节点
export function getUserList (parameter) {
  return request({
    url: `/system/dept/findDeptTreeByTenantId/${parameter}`,
    method: 'get'
  })
}

// 获取左边书节点
export function changeStatus ({ id = '', status = '' }) {
  return request({
    url: `/system/user/changeStatus/${id}/${status}`,
    method: 'put'
  })
}
